#ifndef XML_UTIL_H_
#define XML_UTIL_H_

#include <expat.h>
#include <map>
#include <string>

using namespace std;

void xml_util_parse_sax(const char *filename, void *userData, XML_StartElementHandler startTag, XML_EndElementHandler endTag=0, XML_CharacterDataHandler charData=0, XML_ProcessingInstructionHandler procInst=0);

const char* xml_util_getattribute(const char **attrs, const char *name);

map<string,string> xml_util_getattributesmap(const char **attrs);

#endif // XML_UTIL_H_
